package cn.bs.busuo.passport.dao.persist.mapper;

import cn.bs.busuo.passport.pojo.entity.User;
import cn.bs.busuo.passport.pojo.vo.UserLoginInfoVO;
import cn.bs.busuo.passport.pojo.vo.UserStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名获取用户登录信息
     */
    UserLoginInfoVO getLoginInfoByUsername(String username);

    /**
     * 获取用户的基本信息
     */
    UserStandardVO selectBaseInformation(Long id);
}
